home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Video
/
World of Video.iso
/
gfxprograms
/
3dprograms
/
rayshade-4.0
/
fixes
/
fix024
/
examples
/
tree.ray
< prev
Wrap
Text File
|
1995-02-13
|
1KB
|
52 lines
/* an Oppenheimer tree: IFS with condensation set and 'leaves'
* Philippe Bekaert - dpt. computer science K.U.Leuven, Leuven, Belgium
* e-mail: philippe@cs.kuleuven.ac.be */
light 0.8 directional -2 -1 4
eyep 18 0 1.6
lookp 0 -0.2 3
surface grass
ambient 0.05 0.1 0.03
diffuse 0.5 1 0.3
surface leaf
ambient 0.01 0.1 0.03
diffuse 0.1 1 0.3
surface bark
ambient 0.1 0.06 0.02
diffuse 1 0.6 0.2
background 0.5 0.4 1
plane grass 0 0 0 0 0 1
define beta -90
define h1 70
define R1 0.7
define h2 20
define R2 0.9
define alfa 140
define l 1
define r 0.9
ifs cone bark (l/15) 0 0 0 (l/15*r) 0 0 (l) , /* stem */
disc leaf (l/2) (l/2) (l/2) (l/2) 1 0 0 , /* leaf */
rotate 0 0 1 (beta) /* stem -> branch 1 */
rotate 1 0 0 (h1)
scale (R1) (R1) (R1)
translate 0 0 (l) ,
rotate 0 0 1 (beta) /* stem -> branch 2 */
rotate 1 0 0 (h2)
rotate 0 0 1 ((alfa)-(beta))
scale (R2) (R2) (R2)
translate 0 0 (l)
minsize 0.15 /* controls the recursion depth */
end